/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


Ext.ns("Extmx.util.Format");

Extmx.util.Format.porciento= function(num,defecto) {
    if(isNaN(num))
        return defecto || "...";

    if(num>1)
        return Math.round(num)+"%";
    else
        return parseFloat(num).toFixed(2)+'%';
}